import javax.swing.JFrame;
import javax.swing.JTextField;
import javax.swing.Timer;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Date;

/**
 * @author    Paolo Gabrielli
 * @version   1.0
 * @copyWrith 2008
 */

public class Graphic {
	
	static private JFrame frame = new JFrame();
	static private JTextField aaa = new JTextField("aaaaaaaaaaaaaaaaa");
	
	public Graphic()
	{
		frame.setSize(200, 400);
		frame.add(aaa);
		frame.show();
	}
	
	public void start() {
		MioThread th = new MioThread(this);
		th.start();
	}
	
	public void setText(Date date) {
		aaa.setText("" + date.getSeconds());
	}
	
	public void setTextField(String string) {
		setText(new Date());
	}
	
	
}
